package cn.jly.boot.kafka.utils;

/**
 * @PackageName cn.jly.boot.kafka.utils
 * @ClassName RequestParam
 * @Description 请求参数
 * @Author 姬岚洋
 * @Date 2021/1/10 下午 9:38
 */
public class RequestParam<T> {
    /**
     * topic
     */
    private String topic;

    private T data;

    public RequestParam() {
    }

    public RequestParam(String topic, T data) {
        this.topic = topic;
        this.data = data;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "RequestParam{" +
                "topic='" + topic + '\'' +
                ", data=" + data +
                '}';
    }
}
